﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Globalization;

public partial class Pages_Reservations_ServiceCalendar : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    [System.Web.Services.WebMethod]
    public static DateTime GetDate(string s, int i)
    {
        DateTime d;
        if (!DateTime.TryParse(s, CultureInfo.InvariantCulture, DateTimeStyles.None, out d))
        {
            d = DateTime.Today;
        }
        d = d.AddDays(i * 7);
        return d;
    }
}
